﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Entities_Layer;
using DAL.Repositories;

namespace DAL
{
    public class UnitOfWork
    {
       /* private IRepository<Estrella> _estrellaRepository;

        public IRepository<Estrella> EstrellaRepository
        {
            get
            {
                if (this._estrellaRepository == null)
                {
                    this._estrellaRepository = new EstrellaRepository();
                }
                return _estrellaRepository;
            }
        }
 
        */

        /*private IRepository<Planeta> _planetaRepository;

        public IRepository<Planeta> PlanetaRepository
        {
            get
            {
                if (this._planetaRepository == null)
                {
                    this._planetaRepository = new PlanetaRepository();
                }
                return _planetaRepository;
            }
        }
        */

     /*   private IRepository<ProgramaEspacial> _programaEspecialRepository;

        public IRepository<ProgramaEspacial> ProgramaEspecialRepository
        {
            get
            {
                if (this._programaEspecialRepository == null)
                {
                    this._programaEspecialRepository = new ProgramaEspecialRepository();
                }
                return _programaEspecialRepository;
            }
        }
        */


        private IRepository<Satelite> _sateliteRepository;

        public IRepository<Satelite> SateliteRepository
        {
            get {
                if (this._sateliteRepository == null) 
                {
                    this._sateliteRepository = new SateliteRepository();
                } 
                return _sateliteRepository; 
            }
        }
    }
}
